package com.fc.mall.decoration.widget.object.audio;

import com.fc.mall.decoration.widget.object.Widget;
import com.fc.mall.decoration.widget.object.WidgetType;
import lombok.AccessLevel;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.URL;

import javax.validation.constraints.NotBlank;

@Getter
@Setter
public class Audio extends Widget {
    @Setter(AccessLevel.NONE)
    private String type = WidgetType.VIDEO.name();

    @URL
    private String url;

    @NotBlank
    private String title;

    @NotBlank
    private String author;

    private boolean autoPlay = false;

    @NotBlank
    private String cover;
}
